[PATCH] [Support] Add missing <cstdint> header to Signals.h
authorSergei Trofimovich <slyich@gmail.com>
Mon, 23 May 2022 07:03:23 +0000 (08:03 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 31 Jul 2023 20:16:10 +0000 (21:16 +0100)
Without the change llvm build fails on this week's gcc-13 snapshot as:

    [  0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
    In file included from llvm/lib/Support/Signals.cpp:14:
    llvm/include/llvm/Support/Signals.h:119:8: error: variable or field 'CleanupOnSignal' declared void
      119 |   void CleanupOnSignal(uintptr_t Context);
          |        ^~~~~~~~~~~~~~~

Gbp-Pq: Name gcc-13-build-fix.patch

llvm/include/llvm/Support/Signals.h
openmp/libomptarget/include/Debug.h

index 44f5a750ff5cb0e9f5215cf3aaad7455261f3ff6..937e0572d4a725912bb79e35b3f051dd7ed1f04a 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_SUPPORT_SIGNALS_H
 #define LLVM_SUPPORT_SIGNALS_H
 
+#include <cstdint>
 #include <string>
 
 namespace llvm {
index 942f39fe9c1a2338418ea86991b321dca5a9696c..85cccf79d9c7875530d2272fabd31b0405d94f36 100644 (file)
@@ -39,6 +39,7 @@
 
 #include <atomic>
 #include <mutex>
+#include <string>
 
 /// 32-Bit field data attributes controlling information presented to the user.
 enum OpenMPInfoType : uint32_t {